﻿{include file="public/header"}
<title>订单列表</title>
</head>
<style>
    .layui-layer-page .layui-layer-content {
        overflow: visible !important;
    }

</style>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 统计管理
    <span class="c-gray en">&gt;</span>统计列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
       href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">
    <form method="get">
        <div class="text-c">
            月份:
              <input type="text" name="start_time" id="countTimestart" onfocus="selecttime(1)" size="17"
                       class="date input-text " readonly style="width:100px"
                       value="<?php echo isset($data['start_time'])?$data['start_time']:''?>">
                -
                <input type="text" name="end_time" id="countTimeend" onfocus="selecttime(2)" size="17"
                       class="date input-text" readonly style="width:100px"
                       value="<?php echo isset($data['end_time'])?$data['end_time']:''?>">
                <span class="select-box inline" style="border: none">
            </span>
            <button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>

        </div>

    </form>

    <div class="mt-20">

        <table class="table table-border table-bordered table-bg table-hover table-sort">
            <thead>
            <tr class="text-c">
                <th width="80">时间</th>
                <th width="80">店铺</th>
                <th width="80">接单店长</th>
                <th width="80">接单量</th>
                <th width="80">有效订单</th>
                <th width="100">有效率</th>
                <th width="100">上门量</th>
                <th width="100">远程沟通报价</th>
                <th width="100" >成交量</th>
                <th width="100">上门率</th>
                <th width="100">上门成交率</th>
                <th width="100">订单成交率</th>
                <th width="100">远程沟通成交量</th>
                <th width="100">远程沟通成交率</th>


            </tr>
            </thead>
            <tbody>
            {volist name='list' id='vo'}
            <tr class="text-c">
                <td>{:date('Y-m-d',$vo.date)}</td>
                <td>{$vo.store_name}</td>
                <td>{$vo.username}</td>
                <td>{$vo.count}</td>
                <td>{$vo.you_count}</td>
                <td>{$vo.you_rate}%</td>
                <td>{$vo.shang_count}</td>
                <td>{$vo.thro}</td>
                <td>{$vo.deal}</td>
                <td>{$vo.doorto}%</td>
                <td>{$vo.turnovers}%</td>
                <td>{$vo.orderturnover}%</td>
                <td>{$vo.thro_count}</td>
                <td>{$vo.remote_communication}%</td>



            </tr>
            {/volist}
            </tbody>
        </table>
        <div class="pages" style="float: right">{$list->render()}</div>

    </div>
</div>


{include file="public/footer"}
<script type="text/javascript">
    function selecttime(flag) {
        if (flag == 1) {
            var endTime = $("#countTimeend").val();
            if (endTime != "") {
                WdatePicker({dateFmt: 'yyyy-MM-dd', maxDate: endTime})
            } else {
                WdatePicker({dateFmt: 'yyyy-MM-dd'})
            }
        } else {
            var startTime = $("#countTimestart").val();
            if (startTime != "") {
                WdatePicker({dateFmt: 'yyyy-MM-dd', minDate: startTime})
            } else {
                WdatePicker({dateFmt: 'yyyy-MM-dd'})
            }
        }
    }



</script>
</body>
</html>
